package level;

import java.util.Set;

/**
 * 
 * @author Jevgeni Krutov
 *
 */
public class Cell {
	private Set<Integer> wCoords;
	
	public Cell(Set<Integer> wCoords) {
		this.wCoords = wCoords;
	}
	
	public boolean isCellPresentAtGivenW(int w) {
		if(wCoords.contains(w)) {
			return true;
		}
		return false;
	}
	
	public Set<Integer> getWCoords() {
		return wCoords;
	}
	
	@Override
	public String toString() {
		String result = "";
		for(int i : wCoords) {
			result+= "/" + i;
		}
		return result;
	}
	
}
